using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN IUserRoleServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:12/09/2010 36:08:02</para>
	/// <para>Class Name: IUserRoleServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	[ServiceContract]
	public partial  interface IUserRoleService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: UserRole_ID</para>
		/// <para>Output: UserRoleEntity</para>
		///</summary>
		[OperationContract]
		UserRoleEntity SelectOne(int UserRole_ID);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		[OperationContract]
		List<UserRoleEntity> SelectAll();
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		[OperationContract]
		DataSet SelectAllDS();
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		[OperationContract]
		List<UserRoleEntity> SelectAllFilter(string strFilter);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		[OperationContract]
		DataSet SelectAllDSFilter(string strFilter);
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: UserRoleEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		[OperationContract]
		bool Save(UserRoleEntity o);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveRet</para>
		/// <para>Input: UserRoleEntity</para>
		/// <para>Output: return entity if succeeded else return null</para>
		///</summary>
		[OperationContract]
		UserRoleEntity SaveRet(UserRoleEntity o);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of UserRoleEntity</para>
		/// <para>Output: </para>
		///</summary>
		[OperationContract]
		void SaveList(List<UserRoleEntity> list);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of UserRoleEntity</para>
		/// <para>Output: return list of entities if succeeded else return null list</para>
		///</summary>
		[OperationContract]
		List<UserRoleEntity> SaveListRet(List<UserRoleEntity> list);
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Update</para>
		/// <para>Input: UserRoleEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		[OperationContract]
		bool Update(UserRoleEntity o);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of UserRoleEntity</para>
		/// <para>Output: </para>
		///</summary>
		[OperationContract]
		void UpdateList(List<UserRoleEntity> list);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateUser_ID</para>
		/// <para>Input: NewUser_ID,UserRole_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		[OperationContract]
		bool UpdateUser_ID(int NewUser_ID,int UserRole_ID);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateRole_ID</para>
		/// <para>Input: NewRole_ID,UserRole_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		[OperationContract]
		bool UpdateRole_ID(int NewRole_ID,int UserRole_ID);
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Delete</para>
		/// <para>Input: UserRoleEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		[OperationContract]
		bool Delete(UserRoleEntity o);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: UserRole_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		[OperationContract]
		bool DeleteByID(int UserRole_ID);
		#endregion

		#region Select join to RolesUsers functions
		#endregion

		#region Select join to Roles functions
		#endregion

		#region Select join to Users functions
		#endregion

		#region Select,delete by UserRole_ID functions
		#endregion

		#region Select,delete by User_ID functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByUser_ID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		[OperationContract]
		List<UserRoleEntity> SelectAllByUser_ID(int User_ID);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByUser_ID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: UserRoleDataSet</para>
		///</summary>
		[OperationContract]
		DataSet SelectAllDSByUser_ID(int User_ID);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByUser_ID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		[OperationContract]
		List<UserRoleEntity> SelectAllByUser_IDFilter(string strFilter,int User_ID);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByUser_ID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: UserRoleDataSet</para>
		///</summary>
		[OperationContract]
		DataSet SelectAllDSByUser_IDFilter(string strFilter,int User_ID);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByUser_ID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		[OperationContract]
		bool DeleteByUser_ID(int User_ID);
		#endregion

		#region Select,delete by Role_ID functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByRole_ID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		[OperationContract]
		List<UserRoleEntity> SelectAllByRole_ID(int Role_ID);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByRole_ID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: UserRoleDataSet</para>
		///</summary>
		[OperationContract]
		DataSet SelectAllDSByRole_ID(int Role_ID);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByRole_ID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		[OperationContract]
		List<UserRoleEntity> SelectAllByRole_IDFilter(string strFilter,int Role_ID);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByRole_ID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: UserRoleDataSet</para>
		///</summary>
		[OperationContract]
		DataSet SelectAllDSByRole_IDFilter(string strFilter,int Role_ID);
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByRole_ID</para>
		/// <para>Input: Role_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		[OperationContract]
		bool DeleteByRole_ID(int Role_ID);
		#endregion

		#region Select,Delete by User_IDRole_ID
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByUser_IDRole_ID</para>
		/// <para>Input: User_ID,Role_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		[OperationContract]
		List<UserRoleEntity> SelectAllByUser_IDRole_ID(int User_ID,int Role_ID)
;
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByUser_IDRole_ID</para>
		/// <para>Input: User_ID,Role_ID</para>
		/// <para>Output: DataSet</para>
		///</summary>
		[OperationContract]
		DataSet SelectAllDSByUser_IDRole_ID(int User_ID,int Role_ID)
;
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllByUser_IDRole_ID</para>
		/// <para>Input: User_ID,Role_ID</para>
		/// <para>Output: List of UserRoleEntity</para>
		///</summary>
		[OperationContract]
		List<UserRoleEntity> SelectAllByUser_IDRole_IDFilter(string strFilter,int User_ID,int Role_ID)
;
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDSByUser_IDRole_ID</para>
		/// <para>Input: User_ID,Role_ID</para>
		/// <para>Output: DataSet</para>
		///</summary>
		[OperationContract]
		DataSet SelectAllDSByUser_IDRole_IDFilter(string strFilter,int User_ID,int Role_ID)
;
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByUser_IDRole_ID</para>
		/// <para>Input: User_ID,Role_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		[OperationContract]
		bool DeleteByUser_IDRole_ID(int User_ID,int Role_ID)
;
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END UserRoleWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

